import React, {Component} from 'react'

import {
    Text,
    View,
    Image,
    Dimensions
} from 'react-native'

const winWidth = Dimensions.get('window').width;
const winHeight = Dimensions.get('window').height;
export default class Welcome extends Component {
    constructor(props) {
        super(props)

    }

    componentDidMount() {
        this.timer = setTimeout(() => {
            this.props.navigation.navigate('Page1', {name: "动态的name"});
        }, 2000)
    }

    componentWillUnmount() {
        this.timer && clearTimeout(this.timer)
    }


    render() {
        return (
            <View style={{flex: 1}}>
                <Image
                    source={require('../../images/mine.png')}
                />
            </View>
        )
    }
}